import { defHttp } from '/@/utils/http/axios'

enum Api {
  getUserList = '/user/query',
  inserUser = '/user/insert',
  updateUser = '/user/update',
  deleteUser = '/user/delete',
}

/**
 * @description:
 */

export const getUserList = (data) => {
  return defHttp.post({ url: Api.getUserList,data})
}

export const insertUser = (data) => {
  return defHttp.post({ url: Api.inserUser,data})
}

export const updateUser = (data) => {
  return defHttp.post({ url: Api.updateUser,data})
}

export const deleteUser = (data) => {
  return defHttp.post({ url: Api.deleteUser,data})
}

export const loginApi = (data) => {
  return defHttp.post({ url: '/user/query',data})
}